package com.xyoto.takeawayBusiness.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;

/**
 * 微信登录参数
 * @author Administrator
 */
@ApiModel("微信登录参数")
@Data
public class WxLoginDTO {

    @ApiModelProperty("登录唯一code")
    @NotEmpty(message = "唯一code值不能为空")
    private String code;

    @ApiModelProperty("用户名")
    @NotEmpty(message = "用户名不能为空")
    private String nickname;

    @ApiModelProperty("加密的手机号数据")
    @NotEmpty(message ="加密手机号不能为空")
    private String encryptedData;

    @ApiModelProperty("对称加密密钥")
    @NotEmpty(message = "密钥不能为空")
    private String iv;

}
